package reseauserv;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

public class DiscussionServeurClient implements Runnable {

	private Socket socket1;

	public DiscussionServeurClient(Socket socket1) {
		this.socket1 = socket1;

	}

	public void run() {
		try {
			BufferedReader in1 = new BufferedReader(new InputStreamReader(
					socket1.getInputStream()));

			Thread tReception = new Thread(new Reception(in1));
			tReception.run();
		}

		catch (IOException e) {
			System.err.println("Erreur serveur");
		}

	}
}
